﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script language="javascript">
        function formSubmited(form) {
            alert(form.field1.value + " " + form.field2.value + " " + Date());
            return false;
        }
    </script>

    <form action="#" onsubmit="return formSubmited(this);">
        
        <input type="text" name="field1" /><br />
        <input type="text" name="field2" /><br />
        <input type="submit" value="DO IT" />

    </form>
</body>
</html>
